$(document).ready(function () {
    $('.slickSlider,.slickSlider__product').slick({
        arrows: false,
        infinite: true,
        autoplay: true,
        autoplaySpeed: 2000,
        speed: 500,
        fade: true,
        cssEase: 'linear',
        dots: true,
    });





    // let blocks = document.querySelectorAll(".comment__list");
    // let size = 50;
    // [].forEach.call(blocks, block => {
    //     if (block.innerHTML.length > size) {
    //         block.innerHTML = block.innerHTML.substr(0, size);
    //         block.innerHTML += '... <a href="#" class="read-more-button">read more</a>'
    //     }
    // });
    $('.comment__list').slick({
        dots: true,
        infinite: true,
        autoplay: true,
        autoplaySpeed: 4000,
        adaptiveHeight: true,
        // slidesToShow: 2,
        // slidesToScroll: 1,
        // responsive: [
        //     {
        //         breakpoint: 1024,
        //         settings: {
        //             slidesToShow: 2,
        //             slidesToScroll: 2,
        //             infinite: true,
        //             dots: true
        //         }
        //     },
        //     {
        //         breakpoint: 600,
        //         settings: {
        //             slidesToShow: 1,
        //             slidesToScroll: 1
        //         }
        //     }
        //     // You can unslick at a given breakpoint now by adding:
        //     // settings: "unslick"
        //     // instead of a settings object
        // ]
    });

});
